#pragma once
#include <ch32v30x.h>
#define LED_PORT GPIOA
#define PWR_PIN GPIO_Pin_2
#define STATUS_PIN GPIO_Pin_3
// #define LED_PORT GPIOB
// #define PWR_PIN GPIO_Pin_2
// #define STATUS_PIN GPIO_Pin_10

#define PWR_LED(x)                  \
    if (x)                          \
        LED_PORT->BSHR = PWR_PIN; \
    else                            \
        LED_PORT->BCR = PWR_PIN
#define STATUS_LED(x)                  \
    if (x)                             \
        LED_PORT->BSHR = STATUS_PIN; \
    else                               \
        LED_PORT->BCR = STATUS_PIN
void LED_Init(void);